<template>
	<view style="padding-top: 30rpx;">
		<view class="group flex">
			<view class="">默认分组</view>
			<view class="group_text">3个设备</view>
		</view>
		<view class="group flex-between" style="margin-top: 30rpx;">
			<view class="flex">
				<view class="">分组1</view>
				<view class="group_text">3个设备</view>
			</view>
			<view class="group_right flex">
				<view class="text1">重命名</view>
				<view class="text2" @click="delshow=true">删除</view>
			</view>
		</view>
		<view class="btnsub" @click="addshow=true">添加分组</view>
		<u-overlay :show="delshow" >
			<view class="showpaw">
				<view class="text">确认删除该分组？</view>
				<view class="btn flex-between">
					<view class="btn_close" @click="delshow=false">取消</view>
					<view class="btn_sure">确定</view>
				</view>
			</view>
		</u-overlay>
		<u-overlay :show="addshow" >
			<view class="showpaw addshow">
				<view class="text">添加分组</view>
				<u-input
				    placeholder="请输入分组"
				    border="surround"
				    v-model="name"
					fontSize='14'
					class="textinput"
					
				  ></u-input>
				<view class="btn flex-between">
					<view class="btn_close" @click="addshow=false">取消</view>
					<view class="btn_sure">确定</view>
				</view>
			</view>
		</u-overlay>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				delshow:false,
				addshow:false,
				name:''
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss">
.group{
	width: 690rpx;
	height: 88rpx;
	background: #FFFFFF;
	border-radius: 24rpx;
	font-weight: 500;
	font-size: 28rpx;
	color: #333333;
	margin: 0 auto 0;
	box-sizing: border-box;
	padding: 0 30rpx;
	&_text{
		font-weight: 400;
		font-size: 28rpx;
		color: #999999;
		margin-left: 10rpx;
	}
	&_right{
		font-weight: 500;
		font-size: 28rpx;
		color: #9999FF;
		.text2{
			color: #FF6262;
			margin-left: 30rpx;
		}
	}
}
.btnsub{
	width: 690rpx;
	height: 88rpx;
	line-height: 80rpx;
	text-align: center;
	background: #9999FF;
	border-radius: 44rpx;
	font-weight: 500;
	font-size: 32rpx;
	color: #FFFFFF;
	margin: 130rpx 30rpx 0;
	position: fixed;
	bottom: 20rpx;
}
.showpaw{
	width: 560rpx;
	height: 224rpx;
	background: #FFFFFF;
	border-radius: 24rpx;
	padding: 40rpx 30rpx;
	box-sizing: border-box;
	position: fixed;
	top: 30%;
	left: 95rpx;
	right: 95rpx;
	.text{
		font-weight: 500;
		font-size: 30rpx;
		color: #333333;
		text-align: center;
		margin-bottom: 30rpx;
	}
	.btn{
		margin-top: 40rpx;
		&_close{
			width: 230rpx;
			height: 64rpx;
			border-radius: 32rpx;
			border: 2rpx solid #9999FF;
			font-weight: 500;
			font-size: 26rpx;
			color: #9999FF;
			line-height: 64rpx;
			text-align: center;
		}
		&_sure{
			width: 230rpx;
			height: 64rpx;
			border-radius: 32rpx;
			background: #9999FF;
			font-weight: 500;
			font-size: 26rpx;
			color: #FFFFFF;
			line-height: 64rpx;
			text-align: center;
		}
   }
}
.addshow{
	height: 320rpx;
}
</style>
